

<div id="buscar"  >
    <form class="well form-search" action="<?php echo base_url() . "index.php/estudiante/presearch" ?>" method="post" >
        <input type="text" class="input-medium search-query" name="txtsearch">
        <select id="select02"  name="tipo_busqueda" class="span2">
            <option value="1">CEDULA</option>
            <option value="2">APELLIDO</option>
            <option value="3">NOMBRE</option>
        </select>
        <button type="submit" class="btn">Buscar</button>
    </form> 
</div>
<br/>
<br/>
<br/>
<div id="tabla" >
    <table class="table table-bordered table-striped">
        <caption><h3>LISTADO DE ESTUDIANTES</h3></caption>
        <thead>
            <tr>
                <th>CEDULA</th>
                <th>APELLIDOS</th>
                <th>NOMBRES</th>
                <th>PLANTEL PROCEDE</th>
                <th>ESTADO</th>

                <th colspan="2" align ="center">Acciones</th>
            </tr>
        </thead>
        <tbody>
            <?php
            if (!empty($estudiantes)) {
                foreach ($estudiantes as $i => $row) {
                    ?>
                    <tr>
                        <td><?php echo $row['cedula_pers'] ?></td>
                        <td><?php echo $row['apellido_pers'] ?></td>
                        <td><?php echo $row['nombre_pers'] ?></td>
                        <td><?php echo $row['planted_procede_est'] ?></td>
                        <td><?php echo ($row['activo_est'] == 1 ? "ACTIVO" : "PASIVO") ?></td>
                        <td>
                            <a href='<?php echo (base_url() . "index.php/estudiante/actualizar/upd/" . $row['persona_ide_pers']) ?>'>
                                <i class="icon-edit"></i>Editar</a>
                        </td>
                        <td>
                            <a href='<?php echo (base_url() . "index.php/estudiante/actualizar/del/" . $row['persona_ide_pers']) ?>'>
                                <i class="icon-remove"></i>Eliminar</a></td>

                    </tr>
                    <?php
                }
            }
            ?>
        </tbody>
    </table>        
</div>
<div id="agregar">
    <form class="well" action="<?php echo base_url() . "index.php/estudiante/crear" ?>" method="post" >
        <input class="btn" type="submit"  value="Crear Nuevo Estudiante">

    </form> 
</div>

